<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
*{ margin:0; padding:0}
ul,li{list-style: none}
ul li{ 
width:300px; 
height:100px;
background:#F33;
margin-bottom: 30px;
border: 4px solid #000;
filter:alpha(opacity:30);
opacity: 0.3;
}
</style>
<script type="text/javascript" src="move.js"></script>
<script type="text/javascript" src="jquery-3.3.1.min.js"></script>
<script>
window.onload=function(){
	var oMove=document.getElementById('move');
	var alis=oMove.getElementsByTagName('a');
	for(var i=-0;i<alis.length;i++)
	{
		alis[i].onmouseover=function(){
			_this=this.getElementsByTagName('i')[0];
			startMove(_this[i],{top:-25,opacity:0},function()
			{
				_this..style.top=30+'px';
				startMove(_this[i],{top:20,opacity:100})
				})
			}
		}

	/*li.onmouseover=function(){
		startMove(li,'width',800,function(){
			startMove(li,'height',400,function(){
				startMove(li,'opacity',100,);
			})
			});
		}
	li.onmouseout=function(){
		startMove(li,'opacity',30,function(){
			startMove(li,'height',100,function(){
				startMove(li,'width',300,)
			})
			});
		}
	*/
	}
	$(function()
	{
$('#move a').mouseenter(function(){
	$(this).find('i').animate({top:"-25px",opacity:"0"},300,function(){
		$(this).css({top:"30px"});
		$(this).animate({top:"20px",opacity:"1"},200)
		})
	})

	})

</script>

</head>
<body>
	<div id="move">
    <a href="#"><i><img src="#" /></i><p>彩票</p></a>
    <a href="#"><i><img src="#" /></i><p>彩票</p></a>
    <a href="#"><i><img src="#" /></i><p>彩票</p></a>
    <a href="#"><i><img src="#" /></i><p>彩票</p></a>
    <a href="#"><i><img src="#" /></i><p>彩票</p></a>
    <a href="#"><i><img src="#" /></i><p>彩票</p></a>
    </div>
</body>
</html>